/**
 * 银行表 api 封装
 *
 * @Author:    zhoujk
 * @Date:      2025-01-23 04:08:26
 */
import { postRequest, getRequest } from '/@/lib/axios'

// 分页查询拉卡拉银行信息
export function lakalaBank(param) {
  return postRequest('/b-operation/bank/page_lkl', param)
}

// 查询拉卡拉银行地区信息
export function lakalaBankArea(param) {
  return postRequest('/b-operation/bank/lkl_bank_area_list', param)
}

export const bankApi = {
  /**
   * 分页查询总行表
   */
  pageHead: (param) => {
    return postRequest('/b-operation/bank/page_head', param)
  },
  /**
   * 分页查询支行表
   */
  pageSub: (param) => {
    return postRequest('/b-operation/bank/page_sub', param)
  },

  /**
   * 根据code查询总行
   */
  findCode: (param) => {
    return postRequest('/b-operation/bank/find_code', param)
  },

  /**
   * 根据no查询支行
   */
  findNo: (param) => {
    return postRequest('/b-operation/bank/find_no', param)
  },
}
